using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._SpatialAnalystTools._MapAlgebra
{
    /// <summary>
    /// <para>Single Output Map Algebra</para>
    /// <para>Execute a Grid's map algebra statement to produce a raster.</para>
    /// <para>执行 Grid 的地图代数语句以生成栅格。</para>
    /// </summary>    
    [DisplayName("Single Output Map Algebra")]
    public class SingleOutputMapAlgebra : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public SingleOutputMapAlgebra()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_expression_string">
        /// <para>expression_string</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_out_raster">
        /// <para>out_raster</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public SingleOutputMapAlgebra(object _expression_string, object _out_raster)
        {
            this._expression_string = _expression_string;
            this._out_raster = _out_raster;
        }
        public override string ToolboxName => "Spatial Analyst Tools";

        public override string ToolName => "Single Output Map Algebra";

        public override string CallName => "sa.SingleOutputMapAlgebra";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_expression_string, _out_raster, _in_data];

        /// <summary>
        /// <para>expression_string</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("expression_string")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _expression_string { get; set; }


        /// <summary>
        /// <para>out_raster</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("out_raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_raster { get; set; }


        /// <summary>
        /// <para>in_data</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("in_data")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public List<object> _in_data { get; set; } = null;


        public SingleOutputMapAlgebra SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}